﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

using FRL.DebtChased.Silverlight.Library;

namespace FRL.DebtChased.AgentEditor.Controls
{

	/// <summary>
	/// Declaration of PerformanceCtrl class
	/// Control for setting performance report parameters
	/// and refreshing report
	/// </summary>
	public partial class PerformanceCtrl : UserControl
	{

		/////////////////////////////////////////////////////////////
		// Construction

		public PerformanceCtrl()
		{

			// Load xaml content
			InitializeComponent();

			// Set dates
			dtFrom.SelectedDate = DateTime.Now.AddDays(-7).Date;
			dtTo.SelectedDate = DateTime.Now.Date;

			// Set controls
			txtAccountsPassedCount.Text = "0";
			txtAccountsPassedAmount.Text = "£0.00";
			txtMoniesCollectedCount.Text = "£0.00";
			txtAdjustedSuccess.Text = "0";

		}

		/////////////////////////////////////////////////////////////
		// Event handlers

		private void butRefresh_Click(object sender, RoutedEventArgs e)
		{

			// Development message
			MessageBoxes.PopupDevMessage();

		}

	}

}
